package com.ruoyi.mall.app.service.impl;

import com.ruoyi.mall.app.mapper.DtsLoginMapper;
import com.ruoyi.mall.app.service.IDtsUserService;
import com.ruoyi.mall.common.domain.DtsUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class IDtsUserServiceImpl implements IDtsUserService {

    @Autowired
    private DtsLoginMapper dtsLoginMapper;
    @Override
    public DtsUser getByWeixinOpenid(String openid) {
        return dtsLoginMapper.getByWeixinOpenid(openid);
    }

    @Override
    public void insert(DtsUser user) {
        dtsLoginMapper.insert(user);
    }

    @Override
    public void update(DtsUser user) {
        dtsLoginMapper.update(user);
    }
}
